﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace BruteForce.Screens.PlayingScreen.Map
{
    public delegate void OnEventEndsHandler(MapEvent e);

    public abstract class MapEvent
    {
        public double DefaultDrawScale = 1.0;

        public abstract Vector2 PositionInWorld { get; }
        public abstract Texture2D Texture { get; }
        public event OnEventEndsHandler OnEventEnds;

        public void FireOnEventEnds()
        {
            if (OnEventEnds != null) OnEventEnds(this);
        }
    }
}